package com.marvels.approve.manager.dao;

import java.util.List;
import java.util.Map;

import com.marvels.approve.manager.dto.CaseManagerDTO;
import com.marvels.common.exception.MarvelsBusinessException;

/**
 * 管理流程定义
 * @author 何杰
 * */
public interface ICaseManagerDao {
	/**新增
	 * @param caseManager
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public int insert(CaseManagerDTO caseManager)throws MarvelsBusinessException;
	
	/**更新
	 * @param caseManager
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public int updateByPrimaryKeySelective(CaseManagerDTO caseManager)throws MarvelsBusinessException;
	/**通过主键ID
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public CaseManagerDTO selectByPrimaryKey(Long id)throws MarvelsBusinessException;
	/**查询多条数据
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<CaseManagerDTO> select(CaseManagerDTO caseManagerDTO)throws MarvelsBusinessException;
}
